import axios from '../axios'

export const addGoods = (params) => {
    return axios.post(`goods/goods`, params)
}

export const modifyGoods= (id, params) => {
    return axios.patch(`goods/goods/` + id, params)
}

export const goodsList = (params) => {
    return axios.post(`goods/goods/list`, params)
}

export const removeGoods = (id) => {
    return axios.delete(`goods/goods/` + id);
}

export const goodsInfo = (id) => {
    return axios.get(`goods/goods/` + id);
}

export const modifyStatus= (id, params) => {
    return axios.patch(`goods/goods/status/` + id, params)
}
